package com.codesgood.example.slice;

import com.codesgood.example.ResourceTable;
import com.codesgood.views.JustifiedTextView;

import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;

/**
 * 首页
 */
public class MainAbilitySlice extends AbilitySlice {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_main);
        JustifiedTextView justifiedParagraph =
                (JustifiedTextView) findComponentById(ResourceTable.Id_tv_justified_paragraph);
        justifiedParagraph.setText(ResourceTable.String_lorem_ipsum_extended);
    }

    @Override
    public void onActive() {
        super.onActive();
    }
}
